package com.lanou.utp.mapper;

import com.lanou.utp.entity.Teachlink;
import com.lanou.utp.utils.IdAndName;
import com.lanou.utp.utils.TeachLinkQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author MaQingYun
 */
public interface TeachingMapper {

    List<Teachlink> getTeachlinks(@Param("query") TeachLinkQuery query);

    void addTeachingLink(@Param("teachlink") Teachlink teachlink);

    void insertTeachLinkTecher (@Param("id") Long id, @Param("teacherIds") List<Long> teacherIds);

    List<IdAndName> getTeachlinkTeachers(Long id);

    void updateTeachlinkStatus(Long id);

    Teachlink getTeachlinkById(Long id);

    List<Long> getThahlinkTeachers(Long id);

    void updateTeachlink(Teachlink teachlink);

    void deleteTeachlinkTeacher(@Param("id") Long id);

    void deleteTeachinkById(Long id);



}
